package com.disgnpattern.learn.chapter6;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/21 16:41
 * @decripton 服饰
 * @mail victorydeng@163.com
 */
public class Finery extends Person {

    private Person component;

    //打扮
    public void decorate(Person person) {
        this.component = person;
    }

    @Override
    public void show() {
        if (component != null) {
            component.show();
        }
    }
}
